<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: Event Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_event-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Event Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_event.html" title="Event class. ">Event</a> class.  
 <a href="class_event.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_event_8h_source.html">Event.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abf266022680658bc58b662c9000c25da"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#abf266022680658bc58b662c9000c25da">Event</a> (double <a class="el" href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">occurAfterTime</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_event.html#a491887ba31c3f39b85930214133236fd">eventType</a>, std::shared_ptr&lt; const <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">entity</a>)</td></tr>
<tr class="separator:abf266022680658bc58b662c9000c25da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a40dd4708297f7031e29b39e039ae10"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#a5a40dd4708297f7031e29b39e039ae10">Event</a> ()</td></tr>
<tr class="memdesc:a5a40dd4708297f7031e29b39e039ae10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a5a40dd4708297f7031e29b39e039ae10">More...</a><br/></td></tr>
<tr class="separator:a5a40dd4708297f7031e29b39e039ae10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a0c757aa51de4c298990f70962cfa3fd2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">occurAfterTime</a></td></tr>
<tr class="memdesc:a0c757aa51de4c298990f70962cfa3fd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Occurrence latency, i.e., event occurs after occurAfterTime time.  <a href="#a0c757aa51de4c298990f70962cfa3fd2">More...</a><br/></td></tr>
<tr class="separator:a0c757aa51de4c298990f70962cfa3fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a491887ba31c3f39b85930214133236fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#a491887ba31c3f39b85930214133236fd">eventType</a></td></tr>
<tr class="memdesc:a491887ba31c3f39b85930214133236fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type of the event.  <a href="#a491887ba31c3f39b85930214133236fd">More...</a><br/></td></tr>
<tr class="separator:a491887ba31c3f39b85930214133236fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97fb29e53119ce8179674bf46f23d24e"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; const <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">entity</a></td></tr>
<tr class="memdesc:a97fb29e53119ce8179674bf46f23d24e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simulator entity object associated with event.  <a href="#a97fb29e53119ce8179674bf46f23d24e">More...</a><br/></td></tr>
<tr class="separator:a97fb29e53119ce8179674bf46f23d24e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a33b5ef8ac3e21f9d655b1db577e0e69e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#a33b5ef8ac3e21f9d655b1db577e0e69e">operator==</a> (const <a class="el" href="class_event.html">Event</a> &amp;left, const <a class="el" href="class_event.html">Event</a> &amp;right)</td></tr>
<tr class="memdesc:a33b5ef8ac3e21f9d655b1db577e0e69e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator ==, non-member.  <a href="#a33b5ef8ac3e21f9d655b1db577e0e69e">More...</a><br/></td></tr>
<tr class="separator:a33b5ef8ac3e21f9d655b1db577e0e69e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb11938c92f98ab02bea1ebfd9de42a0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event.html#afb11938c92f98ab02bea1ebfd9de42a0">operator!=</a> (const <a class="el" href="class_event.html">Event</a> &amp;left, const <a class="el" href="class_event.html">Event</a> &amp;right)</td></tr>
<tr class="memdesc:afb11938c92f98ab02bea1ebfd9de42a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator !=, non-member.  <a href="#afb11938c92f98ab02bea1ebfd9de42a0">More...</a><br/></td></tr>
<tr class="separator:afb11938c92f98ab02bea1ebfd9de42a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_event.html" title="Event class. ">Event</a> class. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>April 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>The <a class="el" href="class_event.html" title="Event class. ">Event</a> class implements an <a class="el" href="class_event.html" title="Event class. ">Event</a> for the simulator. An <a class="el" href="class_event.html" title="Event class. ">Event</a> has a latency field, or the amount of time it will take for the event to initiate from the current time or clock time; a field for the type of the event; and a generic object associated with the event. </dd></dl>

<p>Definition at line <a class="el" href="_event_8h_source.html#l00035">35</a> of file <a class="el" href="_event_8h_source.html">Event.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abf266022680658bc58b662c9000c25da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Event::Event </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>occurAfterTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td>
          <td class="paramname"><em>eventType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; const <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>entity</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor with parameters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">occurAfterTime</td><td>Occurrence latency, i.e., event occurs after occurAfterTime time. </td></tr>
    <tr><td class="paramname">event</td><td>Type of the event. </td></tr>
    <tr><td class="paramname">entity</td><td>Simulator entity object associated with event.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>April 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. Constructor with parameters.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">occurAfterTime</td><td>Occurrence latency, i.e., event occurs after occurAfterTime time. </td></tr>
    <tr><td class="paramname">eventType</td><td>Type of the event. </td></tr>
    <tr><td class="paramname">entity</td><td>Simulator entity object associated with event. </td></tr>
  </table>
  </dd>
</dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Who deletes entity? </dd></dl>

<p>Definition at line <a class="el" href="_event_8cpp_source.html#l00029">29</a> of file <a class="el" href="_event_8cpp_source.html">Event.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;                                                                                          : <a class="code" href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">occurAfterTime</a>(<a class="code" href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">occurAfterTime</a>), <a class="code" href="class_event.html#a491887ba31c3f39b85930214133236fd">eventType</a>(<a class="code" href="class_event.html#a491887ba31c3f39b85930214133236fd">eventType</a>), <a class="code" href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">entity</a>(<a class="code" href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">entity</a>) { </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div>
<div class="ttc" id="class_event_html_a0c757aa51de4c298990f70962cfa3fd2"><div class="ttname"><a href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">Event::occurAfterTime</a></div><div class="ttdeci">double occurAfterTime</div><div class="ttdoc">Occurrence latency, i.e., event occurs after occurAfterTime time. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00037">Event.h:37</a></div></div>
<div class="ttc" id="class_event_html_a491887ba31c3f39b85930214133236fd"><div class="ttname"><a href="class_event.html#a491887ba31c3f39b85930214133236fd">Event::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Type of the event. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00038">Event.h:38</a></div></div>
<div class="ttc" id="class_event_html_a97fb29e53119ce8179674bf46f23d24e"><div class="ttname"><a href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">Event::entity</a></div><div class="ttdeci">std::shared_ptr&lt; const Entity &gt; entity</div><div class="ttdoc">Simulator entity object associated with event. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00039">Event.h:39</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a5a40dd4708297f7031e29b39e039ae10"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Event::Event </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>Who deletes entity? </dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>Should <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> be const? </dd></dl>

<p>Definition at line <a class="el" href="_event_8cpp_source.html#l00035">35</a> of file <a class="el" href="_event_8cpp_source.html">Event.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;             {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="afb11938c92f98ab02bea1ebfd9de42a0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_event.html">Event</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_event.html">Event</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Comparator !=, non-member. </p>
<p>Operator != (not equal) overloading.</p>
<p>This is the overloading of the comparison != operator for use with <a class="el" href="class_event.html" title="Event class. ">Event</a>. The result should be FALSE if the left <a class="el" href="class_event.html" title="Event class. ">Event</a> has the same contents as the right <a class="el" href="class_event.html" title="Event class. ">Event</a>.</p>
<p>Note that this function is simple the negation of == operator. It is being implemented for the sake of fundamental rule of operator overloading.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>The <a class="el" href="class_event.html" title="Event class. ">Event</a> object to the "left", to be compared with the "right". </td></tr>
    <tr><td class="paramname">right</td><td>The <a class="el" href="class_event.html" title="Event class. ">Event</a> object to the "right", to be compared with the "left". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_event_8cpp_source.html#l00065">65</a> of file <a class="el" href="_event_8cpp_source.html">Event.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                                                        {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">return</span> !<a class="code" href="class_event.html#a33b5ef8ac3e21f9d655b1db577e0e69e">operator==</a>(left, right);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;}<div class="ttc" id="class_event_html_a33b5ef8ac3e21f9d655b1db577e0e69e"><div class="ttname"><a href="class_event.html#a33b5ef8ac3e21f9d655b1db577e0e69e">Event::operator==</a></div><div class="ttdeci">friend bool operator==(const Event &amp;left, const Event &amp;right)</div><div class="ttdoc">Comparator ==, non-member. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8cpp_source.html#l00048">Event.cpp:48</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a33b5ef8ac3e21f9d655b1db577e0e69e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_event.html">Event</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_event.html">Event</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Comparator ==, non-member. </p>
<p>Operator == (equal) overloading.</p>
<p>This is the overloading of the comparison == operator for use with <a class="el" href="class_event.html" title="Event class. ">Event</a>. The result should be TRUE if the left <a class="el" href="class_event.html" title="Event class. ">Event</a> has the same contents as the right <a class="el" href="class_event.html" title="Event class. ">Event</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>The <a class="el" href="class_event.html" title="Event class. ">Event</a> object to the "left", to be compared with the "right". </td></tr>
    <tr><td class="paramname">right</td><td>The <a class="el" href="class_event.html" title="Event class. ">Event</a> object to the "right", to be compared with the "left". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_event_8cpp_source.html#l00048">48</a> of file <a class="el" href="_event_8cpp_source.html">Event.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                                                        {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordflow">return</span> (left.<a class="code" href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">entity</a> == right.<a class="code" href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">entity</a> &amp;&amp; left.<a class="code" href="class_event.html#a491887ba31c3f39b85930214133236fd">eventType</a> == right.<a class="code" href="class_event.html#a491887ba31c3f39b85930214133236fd">eventType</a> &amp;&amp; left.<a class="code" href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">occurAfterTime</a> == right.<a class="code" href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">occurAfterTime</a>); </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div>
<div class="ttc" id="class_event_html_a0c757aa51de4c298990f70962cfa3fd2"><div class="ttname"><a href="class_event.html#a0c757aa51de4c298990f70962cfa3fd2">Event::occurAfterTime</a></div><div class="ttdeci">double occurAfterTime</div><div class="ttdoc">Occurrence latency, i.e., event occurs after occurAfterTime time. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00037">Event.h:37</a></div></div>
<div class="ttc" id="class_event_html_a491887ba31c3f39b85930214133236fd"><div class="ttname"><a href="class_event.html#a491887ba31c3f39b85930214133236fd">Event::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Type of the event. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00038">Event.h:38</a></div></div>
<div class="ttc" id="class_event_html_a97fb29e53119ce8179674bf46f23d24e"><div class="ttname"><a href="class_event.html#a97fb29e53119ce8179674bf46f23d24e">Event::entity</a></div><div class="ttdeci">std::shared_ptr&lt; const Entity &gt; entity</div><div class="ttdoc">Simulator entity object associated with event. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00039">Event.h:39</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a97fb29e53119ce8179674bf46f23d24e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;const <a class="el" href="class_entity.html">Entity</a>&gt; Event::entity</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Simulator entity object associated with event. </p>

<p>Definition at line <a class="el" href="_event_8h_source.html#l00039">39</a> of file <a class="el" href="_event_8h_source.html">Event.h</a>.</p>

</div>
</div>
<a class="anchor" id="a491887ba31c3f39b85930214133236fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> Event::eventType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Type of the event. </p>

<p>Definition at line <a class="el" href="_event_8h_source.html#l00038">38</a> of file <a class="el" href="_event_8h_source.html">Event.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0c757aa51de4c298990f70962cfa3fd2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Event::occurAfterTime</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Occurrence latency, i.e., event occurs after occurAfterTime time. </p>

<p>Definition at line <a class="el" href="_event_8h_source.html#l00037">37</a> of file <a class="el" href="_event_8h_source.html">Event.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_event_8h_source.html">Event.h</a></li>
<li>QcnSim/<a class="el" href="_event_8cpp_source.html">Event.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:23 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
